<?php
	
	require('includes/connect.php');

	$oldPassword = $_POST['oldPassword'];

	$newPassword = $_POST['newPassword'];

	$rePassword = $_POST['rePassword'];

	$user_id = $_POST['user_id'];


		$qry = mysql_query("update users set `password`= '$newPassword' where user_id = ".$user_id);

	header('location: settings.php');

?>